From: Guido Günther Date: Sun, 4 Jan 2026 12:36:27 +0000 (+0100) Subject: mixer-control: Print error when we fail to set default source X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2^2^2^2^2~17 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1c1e8e19fd0d16ce53f43ec083c6848930a86af8;p=gnome-shell.git mixer-control: Print error when we fail to set default source Makes is consistent with error handling for setting default sink Signed-off-by: Guido Günther Origin: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/merge_requests/31 Bug: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/issues/34 Bug-Debian: https://bugs.debian.org/1126514 Applied-upstream: gnome-shell 50, commit:798230599950607ec285daecd070f5bcb28580e4 Gbp-Pq: Topic libgvc Gbp-Pq: Name mixer-control-Print-error-when-we-fail-to-set-default-sou.patch --- diff --git a/subprojects/gvc/gvc-mixer-control.c b/subprojects/gvc/gvc-mixer-control.c index 15eb5e8f8..acac0ca14 100644 --- a/subprojects/gvc/gvc-mixer-control.c +++ b/subprojects/gvc/gvc-mixer-control.c @@ -729,7 +729,10 @@ gvc_mixer_control_change_input (GvcMixerControl *control, if (stream != default_stream) { g_debug ("change-input - attempting to swap over to stream %s", gvc_mixer_stream_get_description (stream)); - gvc_mixer_control_set_default_source (control, stream); + if (!gvc_mixer_control_set_default_source (control, stream)) { + g_warning ("Failed to set default source from input %s", + gvc_mixer_ui_device_get_description (input)); + } } }